package com.ykh.spring.controller;

import com.ykh.spring.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-08-23
 * Time: 14:57
 */
@org.springframework.stereotype.Controller
public class Controller {

    @Autowired
    public UserService userService;

    public UserService getUserService() {
        return userService;
    }

    public void setUserService(UserService userService) {
        this.userService = userService;
    }

    public void saveUser() {
        userService.saveUser();
    }
}
